package org.jeecg.modules.erp.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 客户管理
 * @Author: jeecg-boot
 * @Date: 2024-05-20
 * @Version: V1.0
 */
@Data
@TableName("erp_customer")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "erp_customer对象", description = "客户管理")
public class ErpCustomer implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "ID")
    private String id;
    /**
     * 名称
     */
    @Excel(name = "名称", width = 15)
    @ApiModelProperty(value = "名称")
    private String name;
    /**
     * 简称
     */
    @Excel(name = "简称", width = 15)
    @ApiModelProperty(value = "简称")
    private String simpleName;
    /**
     * 联系人
     */
    @Excel(name = "联系人", width = 15)
    @ApiModelProperty(value = "联系人")
    private String contact;
    /**
     * 联系电话
     */
    @Excel(name = "联系电话", width = 15)
    @ApiModelProperty(value = "联系电话")
    private String telephone;
    /**
     * 状态
     */
    @Excel(name = "状态", width = 15, dicCode = "erp_status")
    @Dict(dicCode = "erp_status")
    @ApiModelProperty(value = "状态")
    private Integer status;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    private String updateBy;
    /**
     * 修改时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    /**
     * 客户分类
     */
    @Excel(name = "客户分类", width = 15, dictTable = "erp_customer_cl", dicText = "name", dicCode = "id")
    @Dict(dictTable = "erp_customer_cl", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "客户分类")
    private String cl;
    /**
     * 客户类型
     */
    @Excel(name = "客户类型", width = 15, dictTable = "erp_customer_type", dicText = "name", dicCode = "id")
    @Dict(dictTable = "erp_customer_type", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "客户类型")
    private String type;
    /**
     * 客户类别
     */
    @Excel(name = "客户类别", width = 15, dictTable = "erp_customer_category", dicText = "name", dicCode = "id")
    @Dict(dictTable = "erp_customer_category", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "客户类别")
    private String category;
    /**
     * 品牌
     */
    @Excel(name = "品牌", width = 15, dictTable = "erp_brand", dicText = "name", dicCode = "id")
    @Dict(dictTable = "erp_brand", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "品牌")
    private String brand;
    /**
     * 国家
     */
    @Excel(name = "国家", width = 15, dicCode = "country")
    @Dict(dicCode = "country")
    @ApiModelProperty(value = "国家")
    private String countryId;
    /**
     * 所属洲
     */
    @Excel(name = "所属洲", width = 15)
    @ApiModelProperty(value = "所属洲")
    private String continent;
    /**
     * 销售区域
     */
    @Excel(name = "销售区域", width = 15)
    @ApiModelProperty(value = "销售区域")
    private String salesArea;
    /**
     * 开发时间
     */
    @Excel(name = "开发时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "开发时间")
    private Date deDate;
    /**
     * 地址
     */
    @Excel(name = "地址", width = 15)
    @ApiModelProperty(value = "地址")
    private String address;
    /**
     * 业务员
     */
    @Excel(name = "业务员", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "业务员")
    private String salesman;
    /**
     * 邮箱
     */
    @Excel(name = "邮箱", width = 15)
    @ApiModelProperty(value = "邮箱")
    private String email;
}
